/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 38917
 * Date: 2025-03-07
 * Time: 19:32
 */
public class main8 {
    public static boolean func(int[] array){
        boolean flag = false;
        for (int i = 0; i < array.length - 2; i++) {
            if ((array[i] + array[i + 1] + array[i + 2] % 2) != 0){
                flag = true;
                break;
            }
        }
        return flag;
    }
    public static void main(String[] args) {
        //给你一个整数数组 arr，请你判断数组中是否存在连续三个元素都是奇数的情况：如果存在，请返回 true ；否则，返回 false
        int[] array = {1,1,1,2,3,4,5,6,7,8};
        System.out.println(func(array));
    }
}
